<?php
// +--------------------------------------------------------------------------------------------
// | Author: Admin <543423@qq.com>
// +--------------------------------------------------------------------------------------------
// | Copyright ThinkAdmin http://www.thinkadmin.cn All rights reserved.
// +--------------------------------------------------------------------------------------------

/**
 * +--------------------------------------------------------------------------------------------
 * | Api模块公共控制器
 * +--------------------------------------------------------------------------------------------
 * | Api模块的公共控制器，公共操作控制类
 * +--------------------------------------------------------------------------------------------
 */
namespace Api\Controller;
use Common\Controller\CommonController;
class ApiController extends CommonController{
	
	/**
	 * 
	 * 外部ajax检测验证码是否启用接口
	 */
	public function isverify(){
		!IS_AJAX && $this->_empty(); //非ajax请求限制访问
		$this->msg(HOOK('Plugin','Verify','isverify')? 1 : 0);
	} 
	
	/**
	 * 输出验证码接口
	 */
	public function verify(){
		HOOK('Plugin','Verify','verify');
	}
}